package com.feri.tiantian.controller;

import com.feri.tiantian.service.intf.UserService;
import com.feri.tiantian.vo.R;
import io.swagger.annotations.Api;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/api/user/")
@CrossOrigin
@Api(value = "实现用户相关操作",tags = "实现用户相关操作")
public class UserController {
    @Autowired
    private UserService service;

    @GetMapping("all.do")
    public R all(){
        return service.all();
    }
}
